/** 当路由表太长时，可以将其拆分为小模块 **/

import Layout from 'views/layout/layout'

const mallSettingRouter = {
  path: '/mallSetting',
  component: Layout,
  redirect: 'noredirect',
  name: 'mallSetting',
  meta: {
    title: 'mallSetting',
    icon: 'mallSetting',
    roles: ['demo']
  },
  children: [
    {
      path: 'invoiceManagement',
      component: () => import('pages/mallSetting/invoiceManagement/index'),
      redirect: 'noredirect',
      name: 'invoiceManagement',
      meta: {
        title: 'invoiceManagement'
      },
      children: [
        {
          path: 'invoiceManage',
          component: () => import('pages/mallSetting/invoiceManagement/invoiceManage'),
          name: 'invoiceManage',
          meta: { title: 'invoiceManage' }
        }
      ]
    },
    {
      path: 'logisticsFreightSetting',
      component: () => import('pages/mallSetting/logisticsFreightSetting/index'),
      redirect: 'noredirect',
      name: 'logisticsFreightSetting',
      meta: {
        title: 'logisticsFreightSetting'
      },
      children: [{
        path: 'freightSetting',
        component: () => import('pages/mallSetting/logisticsFreightSetting/freightSetting'),
        name: 'freightSetting',
        meta: {
          title: 'freightSetting'
        }
      }]
    },
    {
      path: 'expressTemplateManagement',
      component: () => import('pages/mallSetting/expressTemplateManagement/index'),
      redirect: 'noredirect',
      name: 'expressTemplateManagement',
      meta: {
        title: 'expressTemplateManagement'
      },
      children: [{
        path: 'expressTemplateManage',
        component: () => import('pages/mallSetting/expressTemplateManagement/expressTemplateManage'),
        name: 'expressTemplateManage',
        meta: {
          title: 'expressTemplateManage'
        }
      }]
    }
  ]
}

export default mallSettingRouter